package com.xi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("english_dict")
public class EnglishDict {
    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String englishWord;
    private String chineseWord;
    private String britishSound; // 音标
    private String americanSound;
    private String britishSoundUrl; // 音标发音url
    private String americanSoundUrl;
    private String tag;  // 单词来源
    private String sentence; // 例句

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
